<template>
    <el-button type="success" @click="test">测试</el-button>
</template>

<script>
export default {
    data(){
        return{

        }
    },
    methods:{
        async test(){
          const res = await  this.$http.post('TestServlet');
          console.log(res);
        }
    }
}
</script>